package jvlite.render;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IRender {

	public void renderJSON(HttpServletResponse response, Object object);
	public void renderData(HttpServletRequest request, Object data);
	public void renderFile(HttpServletResponse response, File file);
	public void renderImage(HttpServletResponse response, BufferedImage image);
	public void renderError(HttpServletRequest request, HttpServletResponse response);
	void renderPage(HttpServletRequest request, HttpServletResponse response,
			String url, Object data) throws ServletException, IOException;
	
}
